CentOS 6
Sponsored Link

Clam AntiVirus
2014/08/12
 
Install Clam AntiVirus to protect servers from virus.
[1] Install Clamav.
# install from EPEL

[root@mail ~]#
yum --enablerepo=epel -y install clamav
# update pattern files

[root@mail ~]#
freshclam

ClamAV update process started at Tue Aug 12 22:26:22 2014
main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo)
daily.cvd is up to date (version: 19278, sigs: 1090360, f-level: 63, builder: neo)
bytecode.cvd is up to date (version: 242, sigs: 46, f-level: 63, builder: dgoddard)
[2] Try to scan.
[root@mail ~]#
clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 3509099
Engine version: 0.98.4
Scanned directories: 94
Scanned files: 109
Infected files: 0
Data scanned: 0.95 MB
Data read: 0.89 MB (ratio 1.07:1)
Time: 8.485 sec (0 m 8 s)

# download trial virus

[root@mail ~]#
wget http://www.eicar.org/download/eicar.com
[root@mail ~]#
clamscan --infected --remove --recursive .

./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.
# just detected
----------- SCAN SUMMARY -----------
Known viruses: 3509099
Engine version: 0.98.4
Scanned directories: 110
Scanned files: 147
Infected files: 1
Data scanned: 0.78 MB
Data read: 0.64 MB (ratio 1.21:1)
Time: 7.982 sec (0 m 7 s)
 
Tweet